import _http from '@/utils/http'

export default {
  goodsList(params, loading) {
    return _http('post', {
      url: "/eas/mobile/goods/qry/list",
      apiName: '商品列表'
    }, params, loading)
  },

  goodsDetail(params, loading) {
    return _http('post', {
      url: "/eas/mobile/goods/qry/detail",
      apiName: '商品详情'
    }, params, loading)
  },

  areaByGoods(params, loading) {
    return _http('post', {
      url: "/eas/area/area/by/goods",
      apiName: '商品对应区域列表'
    }, params, loading)
  },

  phoneQry(params, loading) {
    return _http('post', {
      url: "/eas/mobile/goods/phone/qry",
      apiName: '拉取号码'
    }, params, loading)
  },

  orderSubmit(params, loading) {
    return _http('post', {
      url: "/eas/mobile/goods/order/submit",
      apiName: '提交订单信息'
    }, params, loading)
  },

  shopInfo(params, loading) {
    return _http('post', {
      url: "/ums/shop/info/detail",
      apiName: '我的商铺信息 - 店铺资料'
    }, params, loading)
  },

  goodsInfo(params, loading) {
    return _http('post', {
      url: "/eas/mobile/goods/ziliao/qry",
      apiName: '查询商品资料'
    }, params, loading)
  },

  orderQryDetail(params, loading, headers) {
    return _http("post", {
      url: "/eas/mobile/order/qry/detail",
      apiName: "直接订单详情",
    }, params, loading, headers);
  },

  goodsPay(params, loading, headers) {
    return _http("post", {
      url: "/eas/mobile/goods/pay",
      apiName: "用户申请支付",
    }, params, loading, headers);
  },

  newMessageCount(params, loading) {
    return _http('post', {
      url: "/mnc/message/newMessageCount",
      apiName: '获取最新消息数量'
    }, params, loading)
  },

  bannerList(params, loading) {
    return _http('post', {
      url: "/eas/mobile/goods/list",
      apiName: 'banner列表'
    }, params, loading)
  },

  imgtobase64(params, loading) {
    return _http('post', {
      url: "/eas/mobile/goods/img/down/base64",
      apiName: 'imgtobase64'
    }, params, loading)
  },
}



